{include file="public/top"}    
<script src="scripts/jquery.superslide.2.1.js"></script>
<div id="slideBox" class="slideBox">
    <div class="hd">
        <ul>
            {volist name="nav" id="vo"}
            {if condition="$cur eq $vo.tag"}
            {volist name="vo.show" id="v"}
            <li></li>
            {/volist}
            {/if}
            {/volist}
        </ul>
    </div>
    <div class="bd">
        <ul>
            {volist name="nav" id="vo"}
            {if condition="$cur eq $vo.tag"}
            {volist name="vo.show" id="v"}
            <li>
            <a {if condition="$v.target eq 1"} href="{$v.url}"  target="_blank" {else} href="javascript:;" {/if} title="{$v.title}">
                <img src="{$v.thumb|geturl}" width="100%" alt="{$v.title}" />
            </a>
            </li>
            {/volist}
            {/if}
            {/volist}
        </ul>
    </div>
    <!-- 下面是前/后按钮代码，如果不需要删除即可 -->
    <a class="prev" href="javascript:void(0)"></a>
    <a class="next" href="javascript:void(0)"></a>
</div>

<script type="text/javascript">
jQuery(".slideBox").slide({mainCell:".bd ul",autoPlay:true});
</script>
{notempty name="$article.0.list"}
<div id="services">
    <ul>
        {volist name="$article.0.list" id="vo" key="k"}
        <li class="icon{$k} icon" onClick="window.location.href='{:url('index/article/index',['cate_id'=>$article.0.id,'id'=>$vo.id])}'">
            <p>{$vo.title}</p>
        </li>
        {/volist}
    </ul>
</div>
{/notempty}
{notempty name="goods"}
<div id="product">
    <div class="auto">
        <div class="title"><img src="{$fragment.index_t1.image|geturl}"><span class="more">MORE+</span></div>
        <div class="scroll">
            <ul>
                {volist name="goods" id="vo"}
                <li>
                    <div class="pic"><a href="{:url('index/goods/info',['cate_id'=>$vo.goods_cate_id,'id'=>$vo.id])}" title="{$vo.title}"><img src="{$vo.thumb|geturl}"></div>
                    <p><a href="index.php?id=product" style="color:inherit">{$vo.title}</a></p>
                </li> 
                {/volist}
            </ul> 
        </div>      
    </div>
</div>
{/notempty}
<div style="width:1100px; margin:auto"><img src="{$fragment.index_adv.image|geturl}" / width="100%"></div>

<div id="main">
    {notempty name="$download"}
    <div class="list list1">
        <div class="title">
            <span><img src="{$fragment.index_t2.image|geturl}" /></span>
            <span class="more"><a href="{:url('index/download/index')}">MORE+</a></span>
        </div>
        <ul>    
            {volist name="$download" id="vo"}
            <li>
                <div class="pic"><a href="/public{$vo.pdf_url|geturl}"  title="{$vo.title}" onclick="return check_users('download',{$vo.pdf_url})" download="{$vo.title}"><img src="{$vo.thumb|geturl}" width="85" height="85" /></a></div>
                <div class="txt">
                    <h1><a href="/public{$vo.pdf_url|geturl}"  title="{$vo.title}" onclick="return check_users('download',{$vo.pdf_url})" download="{$vo.title}">{$vo.title}</a></h1>
                    <p><a href="/public{$vo.pdf_url|geturl}"  title="{$vo.title}" onclick="return check_users('download',{$vo.pdf_url})" download="{$vo.title}"></a> </p>
                </div>
            </li>
            {/volist}
        </ul>
    </div>
    {/notempty}
    {notempty name="$article.1.list"}
    <div class="list list2">
        <div class="title">
             <span><img src="{$fragment.index_t3.image|geturl}" /></span>
             <span class="more"><a href="{:url('index/article/index',['cate_id'=>$article.1.id])}">MORE+</a></span>
        </div>
        <ul>
            {volist name="$article.1.list" id="vo" key="k"}
            {if condition="$k lt 4"}
            <li>
                <div class="tit">
                    <span>Q{$k}</span>
                    <h1>
                        <a href="{:url('index/article/index',['cate_id'=>$article.1.id,'id'=>$vo.id])}" title="{vo.title}">{$vo.title}
                        </a>
                    </h1>
                </div>
                <div class="nr">
                    <a href="{:url('index/article/index',['cate_id'=>$article.1.id,'id'=>$vo.id])}" title="{vo.description}">
                        {$vo.description}
                    </a>
                </div>
            </li>
            {/if}
            {/volist}
        </ul>
    </div>
    {/notempty}
    {notempty name="$article.2.list"}
    <div class="list list3">
        <div class="title">
            <span><img src="{$fragment.index_t4.image|geturl}" /></span>
            <span class="more"><a href="{:url('index/article/index',['cate_id'=>$article.2.id])}">MORE+</a></span>
        </div>
        <ul>
            {volist name="$article.2.list" id="vo" key="k"}
            <li>
                <div class="pic">
                <a href="{:url('index/article/index',['cate_id'=>$article.2.id,'id'=>$vo.id])}" title="{$vo.title}">
                    <img src="{$vo.thumb|geturl}"" width="165" height="112" />
                </a>
                </div>
                <p style="overflow: hidden;"><a href="{:url('index/article/index',['cate_id'=>$article.2.id,'id'=>$vo.id])}" title="{$vo.title}">{$vo.title}</a></p>
            </li>
            {/volist}
        </ul>
    </div>
    {/notempty}
</div>
{notempty name="link"}
<div id="links">
    <div class="auto">
        <div class="title"><img src="{$fragment.index_t5.image|geturl}"></div>
            <ul>
                {volist name="$link" id="vo" key="k"}
                <li>
                    <a href="{$vo.link_url}" target="_blank" title="{$vo.link_name}">{$vo.link_name} &nbsp;&nbsp; {if condition="$k neq count($link)"}|{/if}</a>
                </li>
                {/volist}
            </ul>
        </div>
    </div>
</div>
{/notempty}
<script>
$("#product .list span").click(function(){
    $(this).addClass("on").siblings().removeClass("on");
    var z=$(this).index();
    $(".scroll ul").animate({top:-310*z},200);
    })
</script>


{notempty name="$left_contemt"}
<div id="kefu">
    {volist name="left_contemt" id="vo"}
    <p><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={$vo.qq}&site=qq&menu=yes">{$vo.title}</a></p>
    {/volist}
</div>
<script>
$('#kefu').click(function(){
    $(this).toggleClass('on');
});
</script>
{/notempty}
<style type="text/css">
    #aaaaaaaa p a img
    {
        margin-top: 10px;
        float: right;
    }
        #footer .span1 {
        top: 10px;
        float: left;
        padding-left: 10px;
    }
</style>
<div id="footer">
    <div style="height:100px;width: 1100px;overflow: hidden;    margin: 0px auto;">
        <dl style="height:40px;line-height: 40px;">
            <dd style="width:400px;float:left;" id="aaaaaaaa">
                {$fragment.bottom_peg.text}
            </dd>
            <dd style="width:700px;float:left;">
                {notempty name="bottom_nav"}
                    {volist name="bottom_nav" id="vo" key="k"}
                    <span class="span1"><a href="{$vo.path_url}" {if condition="$vo.target eq 1"}  target="_blank" {/if}>{$vo.nav_name}</a></span> {if condition="$k neq count($bottom_nav)"}  <span class="span1">|</span>   {/if}  
                    {/volist}
                {/notempty}
            </dd>
        </dl>
        <dl style="height:40px;line-height: 40px;clear: both;padding-top:10px;">
            <dd>{$fragment.bottom.text}</dd>
        </dl>
    </div>
</div>
</body>
</html>

<script type="text/javascript">
    function check_users(path,id)
    {
        var flag = false;
        $.ajax({
            url:"{:url('index/common/download')}",
            data:{'path':path,'id':id},
            type:'post',
            async: false,
            dataType:"json",
            success:function(res) {
                if(res.code == 1) {
                    alert(res.msg);
                    flag = false;
                } else {
                    flag = true;
                }
            }
        });
        return flag;
    }
</script>